#!/usr/bin/env node
const http =require('http'),
       qs=require('querystring');
      //log=console.log;
let items=[];
function genPage(){
   html.repalce('*', items.map(i=>'<li>'+i+'</li>').join('\n'));
   let html=fs.readFileSync('./template.html');
   return html;

}
http.createServer((req,res)=>{
   if(req.url!=='/'){
     res.statusCode=404;
    res.end('<h1>not found</h1>');
    return ;
  }








